package com.cpp.pojo.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.ai.tool.annotation.ToolParam;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class Question {
//    id INT primary key auto_increment COMMENT '题目id',
//    course_id INT COMMENT '所属课程id',
//    type INT COMMENT '类型：1`编程题`/`2选择题`/3`简答题`',
//    content text COMMENT '题目内容（含题干、选项等）',
//    difficulty INT COMMENT '难度：1`简单`/2`中等`/3`困难`',
//    knowledge_tag VARCHAR(50) COMMENT '关联知识点标签ids',
//    answer text COMMENT '正确答案'

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    //所属考试id
    private Long examId;
    //所属课程id
    private Long courseId;
    //关联知识点标签ids
    private String knowledgeIds;
    //类型：1`开放题`/`2选择题`/3`简答题`
    private Integer type;
    //题目内容（含题干、选项等）
    private String content;
    //难度：1`简单`/2`中等`/3`困难`
    private Integer difficulty;
    //正确答案
    private String answer;
    //答案解析
    private String analysis;
    //分数
    private Integer score;

//    @Override
//    public String toString() {
//        return "课后实训这是一道"+type+"1`开放题`/`2选择题`/3`简答题`"+"题，题目内容是："+content+"，难度是："+difficulty+"，答案是："+answer+"，答案解析是："+analysis;
//    }

}
